home *** CD-ROM | disk | FTP | other *** search
Wrap
<?php //////////////////////////////////////////////////////////////////////////////// // <!--Copyright (c) 2005 Pure Networks Inc. All rights reserved.--> //////////////////////////////////////////////////////////////////////////////// // // Build: 3.0.6121.0 (Stable) // $Revision: #3 $ // $sPanelTableHeader = "tasks"; require "_header_panel.php"; $sEmailSubject = "Check out this " . $sProductNameInformal . " web site"; $sEmailSubject = str_replace(" ", "%20", $sEmailSubject); $sEmailBody = "Hi there:"; $sEmailBody .= "\r\n[Type your message here]"; $sEmailBody .= "\r\n\r\nTo view the photos or files, click this link: " . $sHomeUrl; $sEmailBody .= "\r\n\r\nIf the site is unavailable, the computer hosting the files may be turned off. Please try again later."; $sEmailBody .= "\r\n\r\nThanks!"; $sEmailBody .= "\r\nThe " . $sParentProductNameInformal . " and " . $sProductNameInformal . " Teams"; $sEmailBody .= "\r\n\r\n============================================================="; $sEmailBody .= "\r\n\r\nFor more information on Net2Go and Network Magic - including how you can get your own Net2Go site -- click the links below:"; $sEmailBody .= "\r\n\r\n" . $sProductNameInformal . ": Access and share photos and files on your home network without uploading to a service: http://www.net2go.com"; $sEmailBody .= "\r\n" . $sParentProductNameInformal . ": Manage your home network with one easy application: http://www.networkmagic.com"; $sEmailBody .= "\r\n\r\n============================================================="; $sEmailBody .= "\r\n\r\nIf you feel you have received this email in error, please contact " . $sParentProductNameInformal . " technical support:"; $sEmailBody .= "\r\nhttp://www.networkmagic.com/support/requestsupport.php"; $sEmailBody = str_replace(" ", "sssssxxxxxsssss", $sEmailBody); $sEmailBody = urlEncodeString($sEmailBody); $sEmailBody = str_replace("sssssxxxxxsssss", "%20", $sEmailBody); $sEmailBody = str_replace("\r\n", "%0D%0A", $sEmailBody); $arTasks[$iTaskCount][0] = "Email a friend"; $arTasks[$iTaskCount][1] = "mailto:?subject=" . $sEmailSubject . "&body=" . $sEmailBody; $arTasks[$iTaskCount][2] = "EmailFriendLink"; $arTasks[$iTaskCount][3] = ""; $iTaskCount++; //////////////////////////////////////////////////////////////////////////////// // Add link rel tags for the site's various RSS 2.0 feeds that are available //////////////////////////////////////////////////////////////////////////////// if ($bRssFeedsEnabled) { switch ($sNavPage) { // let's do a switch case here so we can define different feeds for different parts of the site if we so choose. case "folders": case "details": if ($sAccessLevel == 0) // public share { // we're in a share or detail view of a share's image, let's add the rel link tag for the share's specifc rss feed. $arTasks[$iTaskCount][0] = "Subscribe to this share"; $arTasks[$iTaskCount][1] = "/rss2/" . urlEncodeString($_GET['share']); $arTasks[$iTaskCount][2] = "RssFeed"; $arTasks[$iTaskCount][3] = ""; $arTasks[$iTaskCount][4] = "RssLink"; $iTaskCount++; } break; default: // we're anywhere but a share, let's add the rel link tag for the general sitewide rss feed. $arTasks[$iTaskCount][0] = "Subscribe to this site"; $arTasks[$iTaskCount][1] = "/rss2/sitefeed/"; $arTasks[$iTaskCount][2] = "RssFeed"; $arTasks[$iTaskCount][3] = ""; $arTasks[$iTaskCount][4] = "RssLink"; $iTaskCount++; break; } } if ($bRssFeedsEnabled) { $arTasks[$iTaskCount][0] = "Get PhotoCast"; $arTasks[$iTaskCount][1] = "http://photocast.networkmagic.com/?host=" . str_replace("http://","",$sHomeUrl); $arTasks[$iTaskCount][2] = "PhotoCast"; $arTasks[$iTaskCount][3] = "_blank"; $arTasks[$iTaskCount][4] = "PhotoCastLink"; $iTaskCount++; } if (isset($arTasks)) { foreach($arTasks as $task) { // $arTasks[$iTaskCount][0] : Link text // $arTasks[$iTaskCount][1] : link URL // $arTasks[$iTaskCount][2] : id for the div - allows automated DOM access to a specific known link // $arTasks[$iTaskCount][3] : target - allows you to pop a new window with a specific // window name: "_blank" will make a new window pop every time w/o loading into the same one echo ("<a class=\""); if (isset($task[4])) { echo ($task[4]); } else { echo ("LinkOut"); } echo ("\" target=\"" . $task[3] . "\" href=\"" . $task[1] . "\" id=\"" . $task[2] . "\" title=\"". $task[0] . "\">"); echo ($task[0]); echo ("</a>"); echo ("<br/>"); } } echo("<br/>"); require "_footer_panel.php"; ?>